package com.cuje.coolrtc;

import android.app.Application;
import android.content.Context;

import com.cuje.coolrtc.utils.SystemUtil;
import com.p2p.core.P2PFacade;

public class App extends Application {

    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
        P2PFacade.initGlobal(this);
    }

    public static String getUserName() {
        return SystemUtil.getDeviceBrand() + "_" + SystemUtil.getIMEI(mContext);
    }

    public static String getUid() {
        return SystemUtil.getDeviceBrand() + "_" + SystemUtil.getIMEI(mContext);
    }
}
